import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ant-design:lock-twotone',
      keepAlive: true,
      order: 1,
      title: '认证服务',
    },
    name: 'AuthServer',
    path: '/authserver',
    children: [
      {
        meta: {
          title: '用户',
          icon: 'ant-design:user-outlined',
        },
        name: 'user',
        path: '/authserver/user',
        component: () => import('#/views/authserver/user/index.vue'),
      },
      {
        meta: {
          title: '客户端',
          icon: 'ant-design:appstore-outlined',
        },
        name: 'client',
        path: '/authserver/client',
        component: () => import('#/views/authserver/client/index.vue'),
      },
      {
        meta: {
          title: '角色',
          icon: 'ant-design:team-outlined',
        },
        name: 'role',
        path: '/authserver/role',
        component: () => import('#/views/authserver/role/index.vue'),
      },
      {
        meta: {
          title: '组',
          icon: 'ant-design:cluster-outlined',
        },
        name: 'group',
        path: '/authserver/group',
        component: () => import('#/views/authserver/group/index.vue'),
      },
      {
        meta: {
          title: '用户身份',
          icon: 'ant-design:idcard-outlined',
        },
        name: 'userIdentity',
        path: '/authserver/userIdentity',
        component: () => import('#/views/authserver/userIdentity/index.vue'),
      },
      {
        meta: {
          title: '权限',
          icon: 'ant-design:safety-certificate-outlined',
        },
        name: 'scope',
        path: '/authserver/scope',
        component: () => import('#/views/authserver/scope/index.vue'),
      },
      {
        meta: {
          title: '资源',
          icon: 'ant-design:database-outlined',
        },
        name: 'resource',
        path: '/authserver/resource',
        component: () => import('#/views/authserver/resource/index.vue'),
      },
      {
        meta: {
          title: '组织',
          icon: 'ant-design:apartment-outlined',
        },
        name: 'organization',
        path: '/authserver/organization',
        component: () => import('#/views/authserver/organization/index.vue'),
      },

    ],
  },
];

export default routes;
